import javax.imageio.IIOException;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;

public class Demo7 {
    public static void main(String[] args) {
        //Scanner scanner = new Scanner(System.in);
        //可以搭配流对象
        try(InputStream inputStream = new FileInputStream("./test2.txt")) {
            Scanner scanner = new Scanner(inputStream);
            scanner.next();
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
